<template>
  <div class="newBlog">
    <div class="blog">
      <my-detail-blog v-for="(item, id) in blogs"
                        :blog-item="item" :key="id" @queryParam="gotoBlogList"></my-detail-blog>

    </div>
  </div>
</template>

<script>
import myDetailBlog from "./myDetailBlog";

export default {
  name: "myIndexNewshow",
  components: {
    myDetailBlog
  },
  props: {
    blogs: {
      type: Array,
      default() {
        return []
      }
    }
  },
  methods: {
    gotoBlogList(){
      this.$emit("queryParam");
    }
  }
}
</script>

<style scoped>
.newBlog{
  display: flex;
  flex-direction: row;
  margin: 0px 10px 10px 10px;
  width: 100%;
  height: auto;
}
.blog{
  width: 100%;
  margin-right: 15px;
}
</style>
